package org.dromara.product.domain.bo;

import com.baomidou.mybatisplus.annotation.TableField;
import org.dromara.product.domain.KyStockInRecords;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

import java.util.List;

/**
 * 入库记录业务对象 ky_stock_in_records
 *
 * @author kuyu
 * @date 2023-12-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = KyStockInRecords.class, reverseConvertGenerate = false)
public class KyStockInRecordsBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     *
     */
//    @NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long warehouseId;

    /**
     * 入库编号
     */
//    @NotBlank(message = "入库编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String stockNo;

    /**
     *
     */
//    @NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private String mid;

    /**
     * 操作平台
     */
//    @NotBlank(message = "操作平台不能为空", groups = { AddGroup.class, EditGroup.class })
    private String platform;

    /**
     * 入库类型id
     */
//    @NotBlank(message = "入库类型id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long inTypeId;

    /**
     * 供应商id
     */
//    @NotBlank(message = "供应商id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long supplyId;

    /**
     *
     */
//    @NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private String images;

    /**
     * 调拨关联出库表id
     */
//    @NotBlank(message = "调拨关联出库表id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long transOutId;

    /**
     * 库位
     */
//    @NotBlank(message = "库位不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long zoneId;

    /**
     * 0申请,1审核中,2完成,-1拒绝
     */
//    @NotNull(message = "0申请,1审核中,2完成,-1拒绝不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer status;

    /**
     * 单据打印次数
     */
//    @NotNull(message = "单据打印次数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long printNum;

    /**
     *
     */
//    @NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private String recordInfo;

    /**
     *
     */
//    @NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private String mark;

    /**
     *
     */
//    @NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private String custom;

    /**
     *
     */
//    @NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long approveLevel;

    /**
     *
     */
//    @NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private String transId;

    /**
     *
     */
//    @NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fromWarehouseId;

    /**
     *
     */
//    @NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fromZoneId;

    @TableField(exist = false)
    private List<KyStockInRelationsBo> inList;

}
